package com.adee.gulimall.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 使用rabbitmq
 * 1.引入spring-boot-starter-amqp依赖
 * 2.依赖会给容器自动配置：
 *      RabbitmqTemplate、AmpqAdmin、CachingConnectionFactory、RabbitMessagingTemplate
 * 3.加@EnableRabbit注解
 */
@EnableRabbit
@MapperScan("com.adee.gulimall.order.dao")
@SpringBootApplication
public class GulimallOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class, args);
    }
}
